<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Application Edit</title>
        <script>
            function edit(){
                var ops = document.getElementById("option");
                ops.value='edit';
                var f = document.getElementById("form1");
                f.submit();
            }
            function del(){
                var ops = document.getElementById("option");
                ops.value='delete';
                var f = document.getElementById("form1");
                f.submit();
            }
        </script>
    </head>
    <body bgcolor="FFFFFF">
        <table align="center" border=0 cellpadding=2 cellspacing=0 width=100% bgcolor="888888">
            
                    <tr><td bgcolor="666699"><font color="FFFFFF"><b>GEP应用表单</b></font></td></tr><tr><td bgcolor="DDDDDD">
                        <s:form method="POST" id="form1" action="appShow.action" enctype="multipart/form-data">
                        <table align="center">                       
                            <tr>
                                <td><s:textfield readonly="true" label="应用名称" name="appid" size="25"/></td>
                            </tr>
                            <tr>
                                <td><s:textfield label="应用名称" name="app.app" size="25"/></td>
                            </tr>
                            <tr>
                                <td><s:textfield label="二进制文件路径" name="app.binary" size="25"/></td>
                            </tr>
                            <tr>
                                <td><s:select label="并行模式" name="app.parallel" headerKey="-1" headerValue="请选择" list="paralls"/></td>
                            </tr>
                            <tr>
                                <td><s:textfield label="表格名称" name="app.namef" size="25"/></td>
                            </tr>
                            <tr>
                                <td><s:radio label="选择应用是否使用X11图形显示" list="{'yes','no'}" name="app.xApp"/></td>
                            </tr>
                            <tr>
                                <td><s:textfield label="指定用户列表" name="app.users" size="25"/></td>
                            </tr>
                            <tr>
                                <td><s:textarea label="环境变量" name="exports" rows="5" cols="25"/></td>
                            </tr>
                            <tr>
                                <td><s:file label="输入文件" name="fileupload"/></td>
                            </tr>
                            <tr>
                                <td><s:checkbox name="tar" label="如果是一个tar压缩文件，请选中"/></td>
                            </tr>
                            <tr>
                                <td><s:submit value="保存" method="save"/>&nbsp;
                                <s:submit value="删除" method="delete"/></td>
                            </tr>
                        </table>
                    </s:form>
            </td></tr><tr><td bgcolor="000000" align=center>
            <font color=FFFFFF>Copyright 2001 Sun Microsystems, Inc. All rights reserved.</font></td></tr>
        </table>
    </body>
</html>
